/*
 * TMap Designer - A Thematic Map design software
 * Copyright (C) 2006 World Health Organization
 * http://www.who.int
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
package who.tmap.bo.impl;

import who.tmap.bo.Annotations;
import who.tmap.bo.Attrs;
import who.tmap.bo.BaseMap;
import who.tmap.bo.ThematicMap;
import who.tmap.bo.cd.CartographicDisplay;

public class ThematicMapImpl extends BaseBizObjectImpl implements ThematicMap {

    private Attrs data;
    private BaseMap baseMap;
    private CartographicDisplay cartographicDisplay;
    private Annotations annotations;
    
    private boolean linkedFile;
    private String baseMapLinkedFileName;
    private String dataLinkedFileName;
    private String cartographicDisplayLinkedFileName;
    private String annotationsLinkedFileName;
    private String backgroundImageLinkedFileName;
 
    ThematicMapImpl() {
    	super();
    }
    
    /**
     * Shallow clone
     */
    public ThematicMap shallowClone() {
    	ThematicMap thematicMap =new ThematicMapImpl();
    	
    	thematicMap.setFile( getFile() );
    	thematicMap.setData( data );
    	thematicMap.setBaseMap( baseMap );
    	thematicMap.setCartographicDisplay( cartographicDisplay );
    	thematicMap.setAnnotations( annotations );
    	thematicMap.setLinkedFile( linkedFile );
    	thematicMap.setBaseMapLinkedFileName( baseMapLinkedFileName );
    	thematicMap.setDataLinkedFileName( dataLinkedFileName );
    	thematicMap.setCartographicDisplayLinkedFileName( cartographicDisplayLinkedFileName );
    	thematicMap.setAnnotationsLinkedFileName( annotationsLinkedFileName );
    	thematicMap.setBackgroundImageLinkedFileName( backgroundImageLinkedFileName );
    	
    	return thematicMap;
    }

    public void setData(Attrs data) {
        this.data =data;
    }

    public Attrs getData() {
        return data;
    }
    
    /**
     * @return Returns the baseMap.
     */
    public BaseMap getBaseMap() {
        return baseMap;
    }
    /**
     * @param baseMap The baseMap to set.
     */
    public void setBaseMap(BaseMap baseMap) {
        this.baseMap = baseMap;
    }

	public CartographicDisplay getCartographicDisplay() {
		return cartographicDisplay;
	}

	public void setCartographicDisplay(CartographicDisplay cartographicDisplay) {
		this.cartographicDisplay = cartographicDisplay;
	}

	public Annotations getAnnotations() {
		return annotations;
	}

	public void setAnnotations(Annotations annotations) {
		this.annotations = annotations;
	}

	public boolean isLinkedFile() {
		return linkedFile;
	}

	public void setLinkedFile(boolean linkedFile) {
		this.linkedFile = linkedFile;
	}

	public String getBaseMapLinkedFileName() {
		return baseMapLinkedFileName;
	}

	public void setBaseMapLinkedFileName(String baseMapLinkedFileName) {
		this.baseMapLinkedFileName = baseMapLinkedFileName;
	}

	public String getAnnotationsLinkedFileName() {
		return annotationsLinkedFileName;
	}

	public void setAnnotationsLinkedFileName(String annotationsLinkedFileName) {
		this.annotationsLinkedFileName = annotationsLinkedFileName;
	}

	public String getCartographicDisplayLinkedFileName() {
		return cartographicDisplayLinkedFileName;
	}

	public void setCartographicDisplayLinkedFileName(
			String cartographicDisplayLinkedFileName) {
		this.cartographicDisplayLinkedFileName = cartographicDisplayLinkedFileName;
	}

	public String getDataLinkedFileName() {
		return dataLinkedFileName;
	}

	public void setDataLinkedFileName(String dataLinkedFileName) {
		this.dataLinkedFileName = dataLinkedFileName;
	}

	public String getBackgroundImageLinkedFileName() {
		return backgroundImageLinkedFileName;
	}

	public void setBackgroundImageLinkedFileName(
			String backgroundImageLinkedFileName) {
		this.backgroundImageLinkedFileName = backgroundImageLinkedFileName;
	}
    
}
